package com.CmJava.servlet.viewResolver;

import com.CmJava.servlet.modelAndView.view.InternalResourceView;
import com.CmJava.servlet.modelAndView.view.View;

public class ContentNegotiatingViewResolver implements ViewResolver {
    @Override
    public View resolveViewName(String viewName) {
        View bestView = this.getBestView(viewName);
        return bestView;
    }

    private View getBestView(String viewName) {
        return new InternalResourceView(viewName);
    }
}
